package com.blacktry.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blacktry.pojo.Reader;
import com.blacktry.mapper.ReaderMapper;
import com.blacktry.service.ReaderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author blackTry
 * @since 2021-01-31
 */
@Service
public class ReaderServiceImpl extends ServiceImpl<ReaderMapper, Reader> implements ReaderService {

    @Autowired
    private ReaderMapper readerMapper;

    @Override
    public Page<Reader> selectPage(Integer currentPage, Integer size) {
        Page<Reader> page = new Page<>(currentPage, size);
        return readerMapper.selectPage(page,null);
    }
}
